
const formatDate = (str) => {
    let y = str.getFullYear().toString()
    let m = (str.getMonth() + 1).toString()
    let d = str.getDate().toString()
    return `${y}-${m.padStart(2, "0")}-${d.padStart(2, "0")}`
}
export default formatDate